import request from "../request";

export function parkingDay() {  //当日进出场量趋势
    return request({
        url: 'traffic/traffic/parking/data/analyse/trend/day/now',
        method: 'GET',
    })
}

export function parkingMonth() {  //当月进出场量趋势
    return request({
        url: 'traffic/traffic/parking/data/analyse/trend/month/now',
        method: 'GET',
    })
}

export function parkingRate() {  //当月进出场圆周率
    return request({
        url: 'traffic/traffic/parking/statistics/turnover/rate',
        method: 'GET',
    })
}

export function dayCars() {  //当日车辆排行
    return request({
        url: 'traffic/traffic/parking/data/analyse/ranking/day/now',
        method: 'GET',
    })
}

export function weekCars() {  //当周车辆排行
    return request({
        url: 'traffic/traffic/parking/data/analyse/trend/week/now',
        method: 'GET',
    })
}

export function monthCars() {  //当月车辆排行
    return request({
        url: 'traffic/traffic/parking/data/analyse/ranking/month/now',
        method: 'GET',
    })
}

export function carSta() {  //车位统计
    return request({
        url: 'traffic/traffic/parking/statistics/plate',
        method: 'GET',
    })
}

export function enterDatas() {  //进场量统计
    return request({
        url: 'traffic/traffic/parking/statistics/enter',
        method: 'GET',
    })
}

export function noPeopleBus() {  //无人车统计
    return request({
        url: 'traffic/capacity/communication/gardens/driverlessCars',
        method: 'GET',
    })
}

export function playBus() {  //观光车统计
    return request({
        url: 'traffic/capacity/communication/gardens/ferryBus',
        method: 'GET',
    })
}

export function dutyPeople() {  //值班人员
    return request({
        url: 'traffic/traffic/duty/all',
        method: 'GET',
    })
}

// 所有车辆数据
export function getAllCar() {  //值班人员
    return request({
        url: '/traffic/traffic/car/all',
        method: 'GET',
    })
}

export function busData(params) {  //班车
    return request({
        url: '/traffic/traffic/time/now',
        method: 'GET',
        params: params
    })
}

export function dutyPerson(params) {  //值班人员
    return request({
        url: '/traffic/traffic/duty/all',
        method: 'GET',
        params: params
    })
}


export function parking(params) {  //停车场
    return request({
        url: 'traffic/traffic/parking/all',
        method: 'GET',
        params: params
    })
}